package com.ysx.student.zhangqingrong.com.ysx.day3;

/**
 * @author 张青荣
 */
public class DemoTe4 {

    public static void main(String[] args) {
        //   5+10+15+20+...100;


        int sum = 0;
        int i = 5;
        while (i <= 100) {
            //
            if (i % 5 == 0) {
                sum = sum + i;
                i = i + 1;
            }

        }
        System.out.println(sum);
    }

}






